<extend name="Public:base" />

<block name="content">

    <form action="{:U('MasterManage/index')}" method="post">
        <div class="table-responsive">
          <table class="table table-striped table-bordered table-hover search-form">
            <thead>
                <tr>
                    <th>
                    时间：  <input id="time1" name="time1" value="{:I('time1')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                    -- <input id="time2" name="time2" value="{:I('time2')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                    <input class="marginL10" name="order_id" type="text" placeholder="输入查找订单号" value="{:I('order_id')}" />
                    <input class="marginL10"  name="phone" type="text" placeholder="师傅电话" value="{:I('phone')}" />
                    <select class="marginL10"  name="type">
                        <option value="all">全部</option>
                        <option value="1" {:I('type')==1?'selected':''}>奖励</option>
                        <option value="2" {:I('type')==2?'selected':''}>惩罚</option>
                    </select>
                    <input class="btn btn-primary radius5 btn-sm" type="submit" value="查询"/>
                    <a class="btn btn-primary radius5 btn-sm" href="{:U('MasterManage/excelout')}">导出</a>
                    </th>
                    <!--  <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/index')}">搜索</a>-->
                </tr>
            </thead>
        </table>
        </div>
    </form>

    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">

            <thead>
            <tr>
                <th>订单编号</th>
                <th>支付时间</th>
                <th>师傅信息</th>
                <th>订单金额(元)</th>
                <th>订单星级</th>
                <th>惩罚(-)或奖励(+)</th>
                <th>说明</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="ba" key="k">
                <tr>
                    <td>{$ba['repair_order_num_alias']}</td>
                    <td>{$ba['pay_time']|date="Y-m-d H:i:s",###}</td>
                    <td>{$ba['user_name']}{$ba['phone']}</td>
                    <td>{$ba['total']}</td>
                    <td>{$ba['ptotal']}</td>
                    <td>{$ba['money']}</td>
                    <td>{$ba['comment']}</td>
                </tr>
            </volist>
            <tr>
                <td colspan="20" class="page">{$page}</td>
            </tr>
            </tbody>
        </table>
    </div>
</block>
<block name="css">
</block>
<block name="javascript">
<script>

</script>
</block>